import  axios from "@/http/axios"
export default{
    // 删除分配表数据
    delete(data, binding,userName)
    {
        return axios({
            url:'/crm/distributionDelect?'+'userName='+userName,
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 是否分配/邮件的打开关闭
    isMailUpdate(data, binding)
    {
        return axios({
            url:'/crm/distributionEmailUpdate',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 插入到分配表数据
    Insert(data , binding)
    {
        return axios({
            url:'/crm/distributionInsert',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 分配权重表
    weight(data, binding)
    {
        return axios({
            url:'/crm/distributionWeight',
            method:'post',
            data
        })
    },
    // 部门分配权重值的修改
    dep_weightUpdate(data, binding)
    {
        return axios({
            url:'/crm/distributionWeightUpdate',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 分配的一个小Demo
    getDemo(data, binding)
    {
        return axios({
            url:'/crm/getDistribution',
            method:'get',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 删除记录表查询
    del_recordSelect(data, binding)
    {
        return axios({
            url:'/crm/selectDistributionDelected',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 查询分配表数据
    getNormalList(data)
    {
        return axios({
            url:'/crm/distributionSelect',
            method:'post',
            data
        })
    },
    // 删除记录导出数据
    getExportData(data, binding)
    {
        return axios({
            url:'/crm/distributionDelectedDownload?fileName=删除记录.xlsx',
            method:'get',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 删除记录表的数据查询是否签单
    isSign(data, binding)
    {
        return axios({
            url:'/crm/selectDistributionDelectedSign',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    distributionEmailUpdate(data, binding)
    {
        return axios({
            url:'/crm/distributionEmailUpdate',
            method:'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 正常记录导出数据
    getExportNormalData(data, binding, fileName)
    {
        return axios({
            url:'/crm/distributionSelectDownload?'+'fileName='+fileName,
            method:'get',
            params: data,
            headers: {
                "binding": binding
            }
        })
    },
}
